/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package desu.nya.DAO;

import desu.nya.Anime;
import desu.nya.Otaku;
import desu.nya.Rating;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author Fess
 */
public interface RatingDAO {
    public Rating vote(Rating rating) throws SQLException;
    public Rating getRatingByID(int id) throws SQLException;
    public List<Rating> getRateByNick(Otaku otaku) throws SQLException;
    public List<Rating> getRateByAnime(Anime anime) throws SQLException;
    public Rating getRateByNickAndAnime(Otaku otaku, Anime anime) throws SQLException;
    public void updateRating(Long rating_id,Rating rating) throws SQLException;
    public List<Rating> getAllRating() throws SQLException;
    public void deleteRating(Rating rating) throws SQLException;
    
}
